<%@page contentType="text/html;charset=utf-8" language="java" %>
<%@page import="com.ai.dmc.index.common.util.Base64"%>
<%@include file="../common/jsp/common.jsp"%>


<%
	String funcId = request.getParameter("funcId");
	funcId = Base64.decode(funcId);
	String parentFuncName = request.getParameter("parentFuncName");
	parentFuncName = Base64.decode(parentFuncName);
	String funcType = request.getParameter("funcType");
	funcType = Base64.decode(funcType);
%>

<!DOCTYPE html>
<html>

<head>
<title>功能管理-功能修改</title>
<meta charset="utf-8"/>
<script>var funcId = '<%=funcId%>';</script>
<script>var parentFuncName = '<%=parentFuncName%>';</script>
<script>var funcType = '<%=funcType%>';</script>
<script>
	requires(["artDialog", "ztree", "validate", "manage", "/manage/func_modify.js"]);
</script>
</head>

<body class="func-add page-form">

<div class="main">
	<div class="top">
		<h1>功能管理</h1>
		<div class="crumbs">您当前位置：系统管理 -&gt; <a href="func.jsp">功能管理</a> -&gt; <e>功能修改 </e></div>
	</div>	
	<div class="form-box">
		<dl class="form" id="form">
			<dt class="form-dt form-dt-base">
				<label class="key">父功能名称：</label>
				<input id="parentFuncId" pId="" type="text"  disabled="true"/>
			</dt>
			<dt class="form-dt form-dt-base">
				<label class="key">功能类型：</label>
				<select id="funcType" onchange="funcTypeSel()" disabled="true">
					<option value="1">功能</option>
					<option value="0">文件夹</option>
				</select>
			</dt>
			<dt class="form-dt form-dt-base">
				<label class="key">功能编码：</label>
				<input id="funcId" type="text" regex="^\w{4,20}$" tip="长度4-20字符，建议由字母、数字和_组成" disabled="true" />
			</dt>
			<dt class="form-dt form-dt-base">
				<label class="key">功能名称：</label>
				<input id="funcName" type="text" regex="^[\u4e00-\u9fa5\w]{2,20}$" tip="长度2-20字符，建议由汉字、字母、数字和_组成"/>
				<span class='require'>*</span>
			</dt>
			<dt class="form-dt">
				<label class="key">页面URL：</label>
				<input id="funcUrl" type="text" regex="^.{1,2000}$" tip="请输入正确的页面URL"/>
				<span class='require'>*</span>
			</dt>
			<dt class="form-dt form-dt-textarea">
				<label class="key">权限URL：</label>
				<textarea id="funcUrlMore" regex="^.{1,2000}$" tip="请输入正确的权限URL"></textarea>
				<span class='require'>*</span>
			</dt>
			<dt class="form-dt">
				<label class="key">功能状态：</label>
				<select id="status">
					<option value="1">启用</option>
					<option value="0">停用</option>
				</select>
			</dt>			
			<dt class="form-dt form-dt-base">
				<label class="key">是否页面可见：</label>
				<select id="isVisible">
					<option value="1">可见</option>
					<option value="0">不可见</option>
				</select>
			</dt>
			<dt class="form-dt form-dt-base">
				<label class="key">排序编码：</label>
				<input id="funcOrder" type="text" regex="^\w{0,20}$" tip="长度小于20字符，建议由字母、数字和_组成" />
				<span class='require'>*</span>
			</dt>
			<dt class="form-dt">
				<label class="key">&nbsp;&nbsp;</label>
				<span class="form-tip"></span>
			</dt>
		</dl>
		<div class="form-submit-box">
			<button class="form-submit"><i class="iconfont icon-baocun"></i> 提交</button>
			<button class="form-reset"><i class="iconfont icon-chuangyi"></i> 重置</button>
		</div>
	</div>
</div>

</body>
</html>